package com.hoki.zj.hrm.client;

import com.hoki.zj.hrm.domain.LoginUser;
import com.hoki.zj.hrm.utils.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "HRM-AUTH", fallbackFactory = AuthServiceClientCallBackFactory.class)
@RequestMapping("/loginUser")
public interface AuthServiceClient {

    @PutMapping
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
